<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" ng-click="close()"><span>&times;</span></button>
        <h4 class="modal-title" id="exampleModalLabel">新增记录</h4>
    </div>
    <form w5c-form-validate="" name="validateForm" autocomplete="off" novalidate>
        <div class="modal-body">
            <div class="form-horizontal">
                <div class="form-group">
                    <label class="control-label col-md-3">广告标题：</label>
                    <div class="col-md-9">
                        <input class="form-control" ng-model="ad.title" required name="name">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3">广告分类：</label>
                    <div class="col-md-4">
                        <select class="form-control" ng-model="ad.type" required name="type">
                            <option value="">选择广告分类</option>
                            <!--<option value="1">欢迎页广告</option>-->
                            <option value="2">认证页广告</option>
                            <option value="3">主页广告</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3">背景色：</label>
                    <div class="col-md-4">
                        <input class="form-control" ng-model="ad.color" required name="color" placeholder="#666666">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3">广告图片：</label>
                    <div class="col-md-9">
                        <ng-img-upload file-paths="files" url="{{uploadUrl}}" queue-limit="1"></ng-img-upload>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3">广告内容：</label>
                    <div class="col-md-9">
                        <textarea class="form-control" ng-model="ad.content" required name="content"></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-primary" w5c-form-submit="doEdit()">保存</button>
        </div>
    </form>
</div>
